export function setStorageMenuRights( menuRights ) {
  localStorage.setItem('rightMenus',JSON.stringify(menuRights))
}

export function getStorageMenuRights() {
  return JSON.parse(localStorage.getItem('rightMenus'))
}


export function removeStorageMenuRights() {
  localStorage.removeItem('rightMenus')
}

export function setStorageNavIndex( index ) {
  localStorage.setItem('navIndex',index)
}

export function getStorageNavIndex() {
  return localStorage.getItem('navIndex') === undefined || localStorage.getItem('navIndex') === null ? 0 : parseInt(localStorage.getItem('navIndex'))
}

export function removeStorageNavIndex() {
  localStorage.removeItem('navIndex')
}

export function setIsTeamMember( param ){
  localStorage.setItem('isTeamMember',param)
}

export function getIsTeamMember(){
  return localStorage.getItem('isTeamMember')
}

export function removeIsTeamMember(){
  localStorage.removeItem('isTeamMember')
}

export function setStorageTeamMemberRight( param ) {
  localStorage.setItem('memberRight',JSON.stringify(param))
}

export function getStorageTeamMemberRight() {
  return JSON.parse(localStorage.getItem('memberRight'))
}

export function removeStorageTeamMemberRight() {
  localStorage.removeItem('memberRight')
}
